<!-- 1903010328 查询通行证 -->
<?php
include "../../inc/log/adsession.php";
include "../../inc/data/connAdmin.php";
?>
<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<?php
	//  获取表单信息
	require "../../inc/data/connAdmin.php";
	$cType = $_POST['cotype'];
	$cExam = $_POST['coexam'];
	$cName = $_POST['coname'];
	$cCode = $_GET['cocode'];
	//  执行更新
	$sql = "update  mamx_course 
			set cotype='$cType',coexam='$cExam',coname='$cName'
			where cocode = '$cCode'";
	$stmt=$conn->prepare($sql);
	$stmt->execute();
	?>
	<?php
		//  提示修改成功
		?>
		<script type="text/javascript">
		alert('课程信息修改成功！');
		location = "courseAdmin.php";
		</script>
		<?php
	?>
</body>
</html>